import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
export default new Router({
  routes: [
    {
      path: "/",
      name: "index",
      // 主页新闻列表
      component: ()=>import("@/pages/index.vue"),
    },
    {
      path: "/article/:id",
      name: "article",
      // 新闻详情
      component: ()=>import("@/pages/article.vue"),
    },
    {
      path: "/user",
      name: "user",
      // 用户中心
      component: ()=>import("@/pages/user.vue"),
    },
  ],
});
